.container {
  max-width: 600px;
  padding: 20px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

h1 {
  margin-bottom: 10px;
  color: #333;
}

p {
  margin-bottom: 20px;
  color: #666;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 20px auto;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.grid-item:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  padding: 20px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.form-group label {
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

input[type='number'] {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.row-col-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 5px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 5px 0;
  font-size: 14px;
  color: #888;
  text-align: center;
}

.divider::before,
.divider::after {
  flex: 1;
  margin: 0 10px;
  content: '';
  border-bottom: 1px solid #ddd;
}

#color-button {
  padding: 12px 24px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#color-button:hover {
  background-color: #0056b3;
}

.error-message {
  min-height: 20px;
  margin-top: 5px;
  font-size: 14px;
  color: #dc3545;
}

.active {
  color: white;
  background-color: #28a745 !important;
  box-shadow: 0 0 10px rgb(40 167 69 / 50%);
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (width <= 480px) {
  .row-col-inputs {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 15px;
  }

  #color-button {
    width: 100%;
  }
}
